const order = {
  state: {
    tokenOrderList: [],
    importStatus: [],
    payFormState: {}
  },
  mutations: {
    SET_TOKEN_LIST: (state, tokenList) => {
      state.tokenOrderList = tokenList
    },
    SET_PAY_FORM_STATE: (state, data) => {
      state.payFormState = data
    }
  },
  actions: {
    ImportOrderToken({commit}, tokenList) {
      commit('SET_TOKEN_LIST', tokenList)
    },
    ClearOrderToken({commit}) {
      commit('SET_TOKEN_LIST', [])
    },
    setPayFormState({commit}, data) {
      commit('SET_PAY_FORM_STATE',data)
    },
  }
}

export default order
